<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Venue>" %>
<%@ Import Namespace="TeamCommunitySolution.Domain.DataLayer.Venues"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>
        <%= Html.Hidden("Id", Model.Id)%>
        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="Name">Name:</label>
                <%= Html.TextBox("Name", Model.Name) %>
                <%= Html.ValidationMessage("Name", "*") %>
            </p>
            <p>
                <label for="Longditude">Longditude:</label>
                <%= Html.TextBox("Longditude", Model.Longditude) %>
                <%= Html.ValidationMessage("Longditude", "*") %>
            </p>
            <p>
                <label for="Latitude">Latitude:</label>
                <%= Html.TextBox("Latitude", Model.Latitude) %>
                <%= Html.ValidationMessage("Latitude", "*") %>
            </p>
            <p>
                <label for="Description">Description:</label>
                <%= Html.TextBox("Description", Model.Description) %>
                <%= Html.ValidationMessage("Description", "*") %>
            </p>
            <p>
                <label for="Website">Website:</label>
                <%= Html.TextBox("Website", Model.Website) %>
                <%= Html.ValidationMessage("Website", "*") %>
            </p>
            <p>
                <label for="DateFounded">DateFounded:</label>
                <%= Html.TextBox("DateFounded", String.Format("{0:d}", Model.DateFounded)) %>
                <%= Html.ValidationMessage("DateFounded", "*") %>
            </p>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

